package com.appwoo.txtws.adapter;

import java.util.ArrayList;
import java.util.List;

public class Page<T>
{
  private static final int DEFAULT_PAGE = 20;
  private static final int START_PAGE = 1;
  private List<T> entries = new ArrayList();
  private int pageNo = 1;
  private int pageSize = 20;

  public void addAllEntries(List<T> paramList)
  {
    this.entries.addAll(paramList);
  }

  public void firstPage()
  {
    this.pageNo = 1;
  }

  public List<T> getEntries()
  {
    return this.entries;
  }

  public int getPageNo()
  {
    return this.pageNo;
  }

  public int getPageSize()
  {
    return this.pageSize;
  }

  public void nextPage()
  {
    this.pageNo = (1 + this.pageNo);
  }

  public void prevPage()
  {
    int i = 1;
    this.pageNo = (-1 + this.pageNo);
    if (this.pageNo < i);
    while (true)
    {
      this.pageNo = i;
      return;
      i = this.pageNo;
    }
  }

  public void remove(T paramT)
  {
    this.entries.remove(paramT);
  }

  public void removeAll()
  {
    this.entries.clear();
  }

  public void setEntries(List<T> paramList)
  {
    this.pageNo = 1;
    this.entries.clear();
    this.entries.addAll(paramList);
  }

  public void setPageNo(int paramInt)
  {
    this.pageNo = paramInt;
  }

  public void setPageSize(int paramInt)
  {
    this.pageSize = paramInt;
  }
}

/* Location:           C:\Documents and Settings\Administrator\classes_dex2jar.jar
 * Qualified Name:     com.appwoo.txtws.adapter.Page
 * JD-Core Version:    0.6.2
 */